﻿using Microsoft.JSInterop;

namespace FastapiBlazorBlog
{
    public class CodeHighlight
    {
        private readonly IJSRuntime _jsRuntime;
        public CodeHighlight(IJSRuntime jsRuntime)
        {
            _jsRuntime = jsRuntime;
        }
        /// <summary>
        /// 代码高亮
        /// </summary>
        public async Task UseHighlight()
        {
            await _jsRuntime.InvokeVoidAsync("codeHighlight");
        }
    }
}
